package com.xuecheng.api.search;

import com.xuecheng.framework.domain.course.CoursePub;
import com.xuecheng.framework.domain.course.response.TeachplanMediaPub;
import com.xuecheng.framework.domain.search.CourseSearchParam;
import com.xuecheng.framework.model.response.QueryResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.io.IOException;
import java.util.Map;

@Api(description = "课程搜索description",tags = "课程搜索es")
public interface EsCourseControllerApi {
    @ApiOperation("课程综合搜索")
    public abstract QueryResponseResult list(int page, int size, CourseSearchParam courseSearchParam) throws IOException;

    @ApiOperation("根据courseId查询课程信息")
    public Map<String, CoursePub> getAll(String courseId);

    @ApiOperation("根据课程计划id查询对应的媒资信息")
    public TeachplanMediaPub getMediaByTeachplanId(String teachplanId);
}
